<html>
<head>
<body>

<%= javascript_include_tag "prototype" %>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>

<align=left><b>Select theme to edit :

<%
str=""
str1=""
dir_path=Dir.getwd;
dir=dir_path+"/themes";
dir_name=Dir.new(dir);

  dir_name.each {|x|
      if(!x.index(".")) 
          str="<option>"+x+"</option>";
          str1.concat(str);     
      end    
 }
%>

<div id="button">
<%= form_remote_tag(:update => "subdirectory",
                       :url => { :action => :'get_subdirectories' },
                       :position => "top" ) %>
<%= select_tag "list" ,str1%>
<%= submit_tag "Select" %>
<%= end_form_tag %>
</div>
</select>

<br><br><br>
<table border=1>
	<tr>
		<td>
			<%= text_area_tag "body", nil , :size => "80x20" %>
		</td>
		
		<td valign="top">
			<table>
				<tr>
					<td width="40%">
					<b><h4> SubDirectories </h4></b>
					<div id="subdirectory">
					</div>
					</td>
				</tr>
				<tr>
		    		<table border=1>
		    		<tr>
					<td width="10%">
						<b><h4>Files</h4></b> 						
						<div id="filenames">
						</div>	
					</td>
					</tr>
					</table>
				</tr> 
			</table> 
		</td>
</table> 
</head>
</body>
<html>

